package net.expectx.micro.shop.dao.bean;

import java.io.Serializable;

public class ProductCategory implements Serializable {
    private Long id;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Long gmtCreate;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Long gmtModified;

    /**
     * 逻辑删除（0：否，1：是）
     *
     * @mbg.generated
     */
    private Byte isDeleted;

    /**
     * ????
     *
     * @mbg.generated
     */
    private Long productCategoryParentId;

    /**
     * ????
     *
     * @mbg.generated
     */
    private String productCategoryName;

    /**
     * ?????
     *
     * @mbg.generated
     */
    private String productCategoryKeywords;

    /**
     * ????
     *
     * @mbg.generated
     */
    private String productCategoryDesc;

    private Long orders;

    /**
     * 是否显示导航栏 1是 0否
     *
     * @mbg.generated
     */
    private Byte showInNav;

    /**
     * ???? 1?? 0 ???
     *
     * @mbg.generated
     */
    private Byte isShow;

    /**
     * 商品图标
     *
     * @mbg.generated
     */
    private String icon;

    private static final long serialVersionUID = 1L;

    private ProductCategory productCategory;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Long gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Long gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Byte getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Long getProductCategoryParentId() {
        return productCategoryParentId;
    }

    public void setProductCategoryParentId(Long productCategoryParentId) {
        this.productCategoryParentId = productCategoryParentId;
    }

    public String getProductCategoryName() {
        return productCategoryName;
    }

    public void setProductCategoryName(String productCategoryName) {
        this.productCategoryName = productCategoryName;
    }

    public String getProductCategoryKeywords() {
        return productCategoryKeywords;
    }

    public void setProductCategoryKeywords(String productCategoryKeywords) {
        this.productCategoryKeywords = productCategoryKeywords;
    }

    public String getProductCategoryDesc() {
        return productCategoryDesc;
    }

    public void setProductCategoryDesc(String productCategoryDesc) {
        this.productCategoryDesc = productCategoryDesc;
    }

    public Long getOrders() {
        return orders;
    }

    public void setOrders(Long orders) {
        this.orders = orders;
    }

    public Byte getShowInNav() {
        return showInNav;
    }

    public void setShowInNav(Byte showInNav) {
        this.showInNav = showInNav;
    }

    public Byte getIsShow() {
        return isShow;
    }

    public void setIsShow(Byte isShow) {
        this.isShow = isShow;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public ProductCategory getProductCategory() {
        return productCategory;
    }

    public void setProductCategory(ProductCategory productCategory) {
        this.productCategory = productCategory;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", productCategoryParentId=").append(productCategoryParentId);
        sb.append(", productCategoryName=").append(productCategoryName);
        sb.append(", productCategoryKeywords=").append(productCategoryKeywords);
        sb.append(", productCategoryDesc=").append(productCategoryDesc);
        sb.append(", orders=").append(orders);
        sb.append(", showInNav=").append(showInNav);
        sb.append(", isShow=").append(isShow);
        sb.append(", icon=").append(icon);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductCategory other = (ProductCategory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
            && (this.getProductCategoryParentId() == null ? other.getProductCategoryParentId() == null : this.getProductCategoryParentId().equals(other.getProductCategoryParentId()))
            && (this.getProductCategoryName() == null ? other.getProductCategoryName() == null : this.getProductCategoryName().equals(other.getProductCategoryName()))
            && (this.getProductCategoryKeywords() == null ? other.getProductCategoryKeywords() == null : this.getProductCategoryKeywords().equals(other.getProductCategoryKeywords()))
            && (this.getProductCategoryDesc() == null ? other.getProductCategoryDesc() == null : this.getProductCategoryDesc().equals(other.getProductCategoryDesc()))
            && (this.getOrders() == null ? other.getOrders() == null : this.getOrders().equals(other.getOrders()))
            && (this.getShowInNav() == null ? other.getShowInNav() == null : this.getShowInNav().equals(other.getShowInNav()))
            && (this.getIsShow() == null ? other.getIsShow() == null : this.getIsShow().equals(other.getIsShow()))
            && (this.getIcon() == null ? other.getIcon() == null : this.getIcon().equals(other.getIcon()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getProductCategoryParentId() == null) ? 0 : getProductCategoryParentId().hashCode());
        result = prime * result + ((getProductCategoryName() == null) ? 0 : getProductCategoryName().hashCode());
        result = prime * result + ((getProductCategoryKeywords() == null) ? 0 : getProductCategoryKeywords().hashCode());
        result = prime * result + ((getProductCategoryDesc() == null) ? 0 : getProductCategoryDesc().hashCode());
        result = prime * result + ((getOrders() == null) ? 0 : getOrders().hashCode());
        result = prime * result + ((getShowInNav() == null) ? 0 : getShowInNav().hashCode());
        result = prime * result + ((getIsShow() == null) ? 0 : getIsShow().hashCode());
        result = prime * result + ((getIcon() == null) ? 0 : getIcon().hashCode());
        return result;
    }
}
